<?php

namespace app\teacher\controller\v1;

use app\common\model\Banner as BannerModel;
use app\common\controller\BaseController;
use think\Controller;
use think\Request;

class Banner extends BaseController
{
    /**
     * 首页轮播图
     */
    public function index()
    {
        $banners = BannerModel::getBanners(2);
        $banners ? $this->success('', compact('banners')) : $this->error('没有数据');
    }

}
